package com.ruoyi.doc.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.doc.service.IDictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/dict")
public class DictController {

    @Autowired
    private IDictService dictService;

    /**
     * 根据字典类型查询字典数据信息
     */
    @GetMapping(value = "/remote/{remoteParms}")
    public AjaxResult remote(@PathVariable String remoteParms)
    {
        return AjaxResult.success(dictService.selectDictDataByRemote(remoteParms));
    }

}
